package service;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.UserDao;
import model.User;
@Service
public class UserServiceImpl extends BaseService implements UserService{
	@Autowired
	private UserDao userDao;
	
	
	@Override
	public void save(String name) {
		
		String id=UUID.randomUUID().toString();
		User user=new User(id, name);
		
		userDao.save(user);
		
		
		
	}

}
